package com.peter.design.pattern.factory.simplefactory;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/22 19:55
 * @Description: 客户端调用
 */
public class Client {
    public static void main(String[] args) {
        IProduct product1 = ProductFactory.createProduct("A");
        product1.method();

        IProduct product2 = ProductFactory.createProduct("B");
        product2.method();
    }
}
